import Vue from 'vue'
import FastClick from 'fastclick'
import VueRouter from 'vue-router'
import App from './App'
import router from './router'
import { AjaxPlugin } from 'vux'
import './styles/app.less'
import XPage from './components/XPage'
import XCard from './components/XCard'
import XItem from './components/XItem'

Vue.component(XPage.name, XPage)
Vue.component(XCard.name, XCard)
Vue.component(XItem.name, XItem)

Vue.use(VueRouter)

Vue.use(AjaxPlugin)
Vue.prototype.HOST = '/cyq'
// Vue.prototype.$http = AjaxPlugin

// const routes = [{
//   path: '/',
//   component: Home
// }]

// const router = new VueRouter({
//   routes
// })

FastClick.attach(document.body)

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  router,
  render: h => h(App)
}).$mount('#app-box')
